package com.cobra.activiti.handler;

/**
 * @author yaobin
 * @date 2020/4/20 0020 14:43
 * @Description 异常处理
 */
public enum GlobalExceptionCode {


    ///以下为示例，后期需要删除

    NOT_FOUND_EXCEPTION_CODE("3","资源未找到"),

    METHOD_ARGUMENT_EXCEPTION_CODE("4","方法参数异常"),


    DATA_PERSISTENCE_EXCEPTION_CODE("6", "数据持久化异常");



    /**
     * 异常代码
     */
    private String code;

    /**
     * 异常信息
     */
    private String msg;


    GlobalExceptionCode(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }


    public String getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
